layui.use('jquery', function () {
    var $ = layui.jquery;
    $.ajax({
        url: '/system/getSystem',
        type: 'post',
        dataType: 'json',
        success: function (data) {
            $('#mysql').text(data.data[0]);
            $('#serverName').text(data.data[1]);
            $('#serverInfo').text(data.data[2]);
            $('#serverPort').text(data.data[3]);
            $('#property').text(data.data[4]);
            $('#Environment').text(data.data[5]);
        }
    });

    //获取IE版本以及名称
    function getBrowserInfo() {
        var agent = navigator.userAgent.toLowerCase();
        var regStr_ie = /msie [\d.]+;/gi;
        var regStr_ff = /firefox\/[\d.]+/gi
        var regStr_chrome = /chrome\/[\d.]+/gi;
        var regStr_saf = /safari\/[\d.]+/gi;
        //IE
        if (agent.indexOf("msie") > 0) {
            return agent.match(regStr_ie);
        }
        //firefox
        if (agent.indexOf("firefox") > 0) {
            return agent.match(regStr_ff);
        }
        //Chrome
        if (agent.indexOf("chrome") > 0) {
            return agent.match(regStr_chrome);
        }
        //Safari
        if (agent.indexOf("safari") > 0 && agent.indexOf("chrome") < 0) {
            return agent.match(regStr_saf);
        }
    }
    var browser = getBrowserInfo();
    var ieName = browser[0];
    ieName = ieName.substring(0, ieName.indexOf('/'));
    $('#ieName').text(ieName);
    var verinfo = (browser + "").replace(/[^0-9.]/ig, "");
    $('#ieVersion').text(verinfo);
});